c9a677
@@ -128,7 +128,7 @@
public ObjectInspector initialize(ObjectInspector[] arguments) throws UDFArgumen
       } else {
         throw new UDFArgumentException(
             "Only primitive type arguments are accepted, when arguments length is one, got "
-                + arguments[1].getTypeName());
+                + arguments[0].getTypeName());
       }
     }
     throw new UDFArgumentException("TRUNC requires one or two argument, got " + arguments.length);
